#include "../inc/WireBox.h"

WireBox::WireBox ( CoordF pos, GLfloat w, GLfloat h, GLfloat d ) 
{
  setDimensions(w, h, d);
  setPos(pos);
}

WireBox::WireBox ( CoordF pos, GLfloat w, GLfloat h, GLfloat d, CoordF c )
{
  setDimensions(w, h, d);
  setPos(pos);
  setColor(c);
}

WireBox::WireBox ( CoordF pos, GLfloat w, GLfloat h, GLfloat d, int c ) 
{
  setDimensions(w, h, d);
  setPos(pos);
  setColor(c);
}

void WireBox::setColor ( CoordF c )
{
  for (int i=0; i<12; i++)
    edge[i].material()->setMaterial(c);
}

void WireBox::setColor ( int c )
{
  for (int i=0; i<12; i++)
    edge[i].material()->setMaterial(c);
}

void WireBox::toggleLighting()
{
  for (int i=0; i<12; i++)
    edge[i].toggleLighting();
}

void WireBox::render()
{
  for (int i=0;i<12;i++)
    edge[i].draw();
}
